package com.liuyi.netty.im.commons.codes.data.event.message.playload;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 系统消息
 *
 * @author Mr.Fmy
 * @since 2022/1/10
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PlayloadSys extends Playload implements Serializable {

    private static final long serialVersionUID = 8561060223102118537L;


    public static final class Builder {
        private String text;

        private Builder() {
        }

        public static Builder builder() {
            return new Builder();
        }

        public Builder text(String text) {
            this.text = text;
            return this;
        }

        public PlayloadSys build() {
            PlayloadSys playloadSys = new PlayloadSys();
            playloadSys.setText(text);
            return playloadSys;
        }
    }
}
